//
//  JAGAdInterstitial.h
//  JAGatherAdDemo
//
//  Created by Yc on 2022/4/25.
//

#import "JAGAdBaseAdapter.h"

NS_ASSUME_NONNULL_BEGIN

@class JAGAdInterstitial;

@protocol JAGAdInterstitialDelegate <NSObject>

@optional

/// 插屏广告数据请求成功
- (void)JAGatherInterstitialAdSuccessLoad:(JAGAdInterstitial *)interstitial;

/// 插屏广告数据请求失败
- (void)JAGatherInterstitialAdFailLoad:(JAGAdInterstitial *)interstitial error:(NSError *)error;

/// 插屏广告曝光回调
- (void)JAGatherInterstitialAdExposured:(JAGAdInterstitial *)interstitial;

/// 插屏广告曝光失败
- (void)JAGatherInterstitialAdExposuredFailed:(JAGAdInterstitial *)interstitial error:(NSError *)error;

/// 插屏广告点击回调
- (void)JAGatherInterstitialAdClicked:(JAGAdInterstitial *)interstitial;

/// 插屏广告页关闭
- (void)JAGatherInterstitialAdClosed:(JAGAdInterstitial *)interstitial;

@end

@interface JAGAdInterstitial : JAGAdBaseAdapter

@property (nonatomic, weak) id<JAGAdInterstitialDelegate> delegate;

/// 初始化插屏广告
/// @param placementID 广告位
- (instancetype)initWithPlacementID:(NSString*)placementID;

@end

NS_ASSUME_NONNULL_END
